from ultralytics import YOLO
model = YOLO("E:/CodeCNN/yolov8-study/runs/detect/train29/weights/best.pt")
model.export(format="onnx", imgsz=[640, 640], opset=12, simplify=True)